package com.example.back.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.back.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @author Jm
 * @date 2024/7/12
 */
@Mapper
public interface UserMapper extends BaseMapper<User>
{
    /**
     * 查询所有数据
     *
     * @return List
     * */
    @Select("select * from user")
    List<User> selectAll();
}
